package pattern13.basketball;

/**
 * 教练安排战术
 * @author wdl
 */
public class Coach {
    public static void main(String[] args) {
        BasePlayer forward=new Forwards("巴蒂尔");
        forward.attach();

        BasePlayer guard=new Guards("麦克格雷");
        guard.defence();

        //通过翻译者告知外籍中锋需要进攻和防御
        BasePlayer center=new Translator("姚明");
        center.attach();
        center.defence();

    }
}
